<?php

namespace common\base;

/**
 * NotLoggedInHttpException represents a "Need Login" HTTP exception with status code 402.
 *
 * @author Dan Schmidt <danschmidt5189@gmail.com>
 * @since 2.0
 */
class NotLoggedInHttpException extends \yii\web\HttpException {

    /**
     * Constructor.
     * @param string $message error message
     * @param int $code error code
     * @param \Exception $previous The previous exception used for the exception chaining.
     */
    public function __construct($message = null, $code = 0, \Exception $previous = null) {
        parent::__construct(402, $message, $code, $previous);
    }

}
